package com.cykj.user.controller;

import com.cykj.common.dto.ResponseDTO;
import com.cykj.common.entity.HrDO;
import com.cykj.user.service.IChatService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.user.controller
 * @Author: 浮行
 * @CreateTime: 2025-08-28 09:22
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
@RequestMapping("/userChat")
public class ChatController {
    @Autowired
    private IChatService chatService;
    @GetMapping("/selectHRInfo")
    @Operation(summary = "获取hr及公司的相关信息")
    @Parameters({
            @Parameter(name = "hrId",description = "hr的id",required = true,in = ParameterIn.QUERY)
    })
    public ResponseDTO selectHRInfo(@RequestParam("hrId")List<Integer> hrId){
        return chatService.selectHrWithCompany(hrId);
    }


}
